package com.yonyou.cyxdms.sysAuth.service.dto.dealerchannel;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeSerializer;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "经销商对象", description = "经销商对象")
public class DealerDTO extends DMSBaseDTO implements Serializable {
    /**
     * DEALER_ID
     */
    @ApiModelProperty(value = "DEALER_ID")
    private Integer dealerId;
    /**
     * 经销商代码
     */
    @ApiModelProperty(value = "经销商代码")
    private String dealerCode;
    /**
     * 上级单位
     */
    @ApiModelProperty(value = "上级单位")
    private String parentOrg;
    /**
     * 维修站简称
     */
    @ApiModelProperty(value = "维修站简称")
    private String dealerShortname;
    /**
     * 维修站名称
     */
    @ApiModelProperty(value = "维修站名称")
    private String dealerName;
    /**
     * 省份
     */
    @ApiModelProperty(value = "省份")
    private String province;
    /**
     * 城市
     */
    @ApiModelProperty(value = "DEALER_ID")
    private String city;
    /**
     * 所在区县
     */
    @ApiModelProperty(value = "所在区县")
    private String county;
    /**
     * 企业性质
     */
    @ApiModelProperty(value = "企业性质")
    private String property;
    /**
     * E_MAIL
     */
    @ApiModelProperty(value = "E_MAIL")
    private String eMail;
    /**
     * 邮编
     */
    @ApiModelProperty(value = "邮编")
    private String zipCode;
    /**
     * 传真
     */
    @ApiModelProperty(value = "传真")
    private String fax;
    /**
     * 开业日期
     */
    @JsonDeserialize(using = JsonLocalDateTimeDeserializer.class)
    @JsonSerialize(using = JsonLocalDateTimeSerializer.class)
    @ApiModelProperty(value = "开业日期")
    private LocalDateTime openDate;
    /**
     * 24小时热线电话
     */
    @ApiModelProperty(value = "24小时热线电话")
    private String hotLine;
    /**
     * 销售热线
     */
    @ApiModelProperty(value = "销售热线")
    private String salesLine;
    /**
     * 售后热线
     */
    @ApiModelProperty(value = "售后热线")
    private String serviceLine;
    /**
     * 地址
     */
    @ApiModelProperty(value = "地址")
    private String address;
    /**
     * 营业时间
     */
    @ApiModelProperty(value = "营业时间")
    private String businessHours;
    /**
     * 建站日期
     */
    @JsonDeserialize(using = JsonLocalDateTimeDeserializer.class)
    @JsonSerialize(using = JsonLocalDateTimeSerializer.class)
    @ApiModelProperty(value = "建站日期")
    private LocalDateTime createdDate;
    /**
     * 待开业，已开业，停业
     */
    @ApiModelProperty(value = "待开业，已开业，停业")
    private Integer dealerStatus;
    /**
     * 公司主页
     */
    @ApiModelProperty(value = "公司主页")
    private String companyHomepage;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 是否主店
     */
    @ApiModelProperty(value = "是否主店")
    private Integer isMain;

    public LocalDateTime getOpenDate() {
        return openDate;
    }

    public void setOpenDate(LocalDateTime openDate) {
        this.openDate = openDate;
    }

    public LocalDateTime getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(LocalDateTime createdDate) {
        this.createdDate = createdDate;
    }

    public Integer getDealerId() {
        return dealerId;
    }

    public void setDealerId(Integer dealerId) {
        this.dealerId = dealerId;
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }

    public String getParentOrg() {
        return parentOrg;
    }

    public void setParentOrg(String parentOrg) {
        this.parentOrg = parentOrg;
    }

    public String getDealerShortname() {
        return dealerShortname;
    }

    public void setDealerShortname(String dealerShortname) {
        this.dealerShortname = dealerShortname;
    }

    public String getDealerName() {
        return dealerName;
    }

    public void setDealerName(String dealerName) {
        this.dealerName = dealerName;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public String geteMail() {
        return eMail;
    }

    public void seteMail(String eMail) {
        this.eMail = eMail;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getHotLine() {
        return hotLine;
    }

    public void setHotLine(String hotLine) {
        this.hotLine = hotLine;
    }

    public String getSalesLine() {
        return salesLine;
    }

    public void setSalesLine(String salesLine) {
        this.salesLine = salesLine;
    }

    public String getServiceLine() {
        return serviceLine;
    }

    public void setServiceLine(String serviceLine) {
        this.serviceLine = serviceLine;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBusinessHours() {
        return businessHours;
    }

    public void setBusinessHours(String businessHours) {
        this.businessHours = businessHours;
    }

    public Integer getDealerStatus() {
        return dealerStatus;
    }

    public void setDealerStatus(Integer dealerStatus) {
        this.dealerStatus = dealerStatus;
    }

    public String getCompanyHomepage() {
        return companyHomepage;
    }

    public void setCompanyHomepage(String companyHomepage) {
        this.companyHomepage = companyHomepage;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getIsMain() {
        return isMain;
    }

    public void setIsMain(Integer isMain) {
        this.isMain = isMain;
    }

    @Override
    public String toString() {
        return "DealerDTO{" +
                "dealerId=" + dealerId +
                ", dealerCode='" + dealerCode + '\'' +
                ", parentOrg='" + parentOrg + '\'' +
                ", dealerShortname='" + dealerShortname + '\'' +
                ", dealerName='" + dealerName + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", county='" + county + '\'' +
                ", property='" + property + '\'' +
                ", eMail='" + eMail + '\'' +
                ", zipCode='" + zipCode + '\'' +
                ", fax='" + fax + '\'' +
                ", openDate=" + openDate +
                ", hotLine='" + hotLine + '\'' +
                ", salesLine='" + salesLine + '\'' +
                ", serviceLine='" + serviceLine + '\'' +
                ", address='" + address + '\'' +
                ", businessHours='" + businessHours + '\'' +
                ", createdDate=" + createdDate +
                ", dealerStatus=" + dealerStatus +
                ", companyHomepage='" + companyHomepage + '\'' +
                ", remark='" + remark + '\'' +
                ", isMain=" + isMain +
                '}';
    }
}
